/******************************************************************************
* File description: maintenanceui.h
* Function: 维护页面
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-28
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#ifndef MAINTENANCEUI_H
#define MAINTENANCEUI_H

#include <QObject>
#include <QQuickWidget>
#include <QQmlContext>

#include "maintenanceothersui.h"
#include "deviceselfchecking.h"

class MaintenanceUI : public QQuickWidget
{
    Q_OBJECT

signals:
    void returnSig();

private slots:
    // qml 传过来的信号
    void onMaintenanceOthers(); // 其他维护
    void onSelfChecking(); // 自检

public:
    MaintenanceUI();
    ~MaintenanceUI();

public:
    QQmlContext* getContext() const; // 获取qmlcontext
    QObject* getRootObject() const; // 获取rootObject

private:
    QObject *_rootObj;
    QQmlContext *_rootContext;

    // UI页面
    MaintenanceOthersUI *maintenanceOthersUi;
    DeviceSelfChecking *selfChecking;
};

#endif // MAINTENANCEUI_H
